package cn.tedu.egmvc2.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;
@Data
public class UserInsertParam {

    @ApiModelProperty(value = "用户编号",required = true)
    private Long id;
    @Size(min = 6,max = 12,message = "用户名必须在6-12位之间")
    @ApiModelProperty(value = "用户名字",required = true)
    private String username;
    @ApiModelProperty(value = "用户密码",required = true)
    private String password;
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;

}
